/* 
 * File:   UndoCommand.h
 * Author: Gab'z
 *
 * Created on 3 juin 2012, 20:13
 */

#ifndef UNDOCOMMAND_H
#define	UNDOCOMMAND_H

#include "Command.h"

namespace calculator {

    class UndoCommand : public Command {
        friend class CommandMap;
    public:
        virtual ~UndoCommand();

        virtual UndoCommand* clone() const;

        std::string isExecutable() const;
        void execute() const throw (CommandException);

    private:
        UndoCommand(const std::string name);
        UndoCommand(const UndoCommand& orig);
    };
}
#endif	/* UNDOCOMMAND_H */

